<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>找回密码 - 爽客网</title>
<%@include file="../common/js.jsp" %>
<%@include file="../common/css.jsp" %>
<link href="../../css/other.css" type="text/css" rel="stylesheet" />

<!--[if ie 6]><script src="../js/common/iepng.js" type="text/javascript"></script><![endif]-->
<!--[if ie 6]><link href="../../css/jrIE6.css" type="text/css" rel="stylesheet"><![endif]-->
<!--[if ie 6]><link href="../../css/jrIE.css" type="text/css" rel="stylesheet"><![endif]-->
</head>

<body>
	
     <%@include file="../common/header.jsp" %>

	<div class="wrap">
    	
        <div class="box_s1">
        	<div class="head"></div>
            <div class="content find_h">
            	<h1 class="title"><img src="../../images/smallpic/icon_31.gif" />找回密码</h1>
                <div class="mg_fp_s1">
                	<p class="step_tip psd_step3"></p>
                    <div class="find_box">
                    	<ul class="newpsd">
                        	<li>
                            	<label class="label">输入新密码：</label><input type="password" id="newPwd1"/>
                            </li>
                            <li>
                            	<label class="label">再次输入新密码：</label><input type="password"  id="newPwd2" />
                            </li>
                            <li>
                            	<input type="button" class="psd_btn" onclick="saveNewpwd();"/>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        	<div class="foot"></div>
        </div>

    </div>
    
     <!--footer-->
    <%@include file="../common/footer.jsp" %>
    <!--footer--end-->
    
    <script type="text/javascript">
       function saveNewpwd(){
    	   var pwd1 =$("#newPwd1").val(); 
    	   var pwd2 =$("#newPwd2").val(); 
    	   if(pwd1.length<6 || pwd1.length>20){
    		   alert("密码请必须在6到20位");
    	   }else if(pwd1!=pwd2){
    		   alert("两次密码不一致！")
    	   }else{
    		   
    			$.post("ModifyPw.htm", {
    				newPassWord :pwd1					
				}, function(data) {
					if (data != 'error') {
						alert("修改成功");
						window.location = "member.htm";
					} 
				});
    	   }
    	   
       }
    </script>
</body>
</html>
